@import "./variables";
//
// 通用 classes
// --------------------------------------------------

// 清理浮动
// -------------------------
.clearfix:before {
  display: table;
  content: '';
}
.clearfix:after {
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
  content: '.';
}
.clearfix {
  *display: inline-block;
  *zoom: 1;
}

.clear {
  display: block;
  height: 0;
  line-height: 0;
  font-size: 0;
  clear: both;
  overflow: hidden;
}

// 结构样式
// -------------------------
.wrapper {
  width: 100%;
  min-width: 1200px;
}

.inner {
  width: 1200px;
  margin: auto;
}
// 设置为表格
.table-box {
  display: table;
  width: 100%;
  height: 100%;
  table-layout: fixed;
}
.table-cell {
  display: table-cell;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  text-align: center;
}

// 行为样式
// -------------------------
.none {
  display: none !important;
}

// 浮动
.fl {
  float: left;
}

.fr {
  float: right;
}

.ma {
  margin: 0 auto;
}

.block{
  display: block;
}

.inline{
  display: inline;
}

.ft-bold {
  font-weight: bold;
}

.t-left {
  text-align: left;
}

.t-center {
  text-align: center;
}

.t-right {
  text-align: right;
}

// 字体、颜色、背景样式
// -------------------------
.ft-song {
  font-family: '宋体' !important;
}

// 字体
.ft-small {
  font-size: $font-size-small;
}

.ft-base {
  font-size: $font-size-base;
}

.ft-normal {
  font-size: $font-size-normal;
}

.ft-large{
  font-size: $font-size-large;
}

.ft--large-x {
  font-size: $font-size-large-x;
}

.ft-ad-base{
  font-size: 50px;
}

.ft-ad-large{
  font-size: 80px;
}

// 背景
.bg-main {
  background-color: $bg-color-base;
}

.bg-grey{
  background: #efefef;
}

// 文字颜色
.color-normal {
  color: #2b313e;
}

.color-fff {
  color: $bg-color-base;
}

.color-333 {
  color: #333;
}

.color-666 {
  color: #666;
}

.color-gray {
  color: #666;
}

.color-999 {
  color: #999;
}

.color-dark {
  color: #999;
}

// 动画
// -------------------------
.animated {
  -webkit-animation-duration: 0.9s;
  animation-duration: 0.9s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.3, 0.2, 0.1, 0.7);
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

.animated.hinge {
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
}

.animated.bounceIn,
.animated.bounceOut {
  -webkit-animation-duration: .75s;
  animation-duration: .75s;
}

.animated.flipOutX,
.animated.flipOutY {
  -webkit-animation-duration: .75s;
  animation-duration: .75s;
}

@-webkit-keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 40px, 0);
    transform: translate3d(0, 40px, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 40px, 0);
    transform: translate3d(0, 40px, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

